<%-- 
    Document   : Header
    Created on : May 20, 2010, 9:21:46 PM
    Author     : vasi
--%>

<%@page import="entities.UserEntity" %>

<% UserEntity user = (UserEntity)request.getAttribute("user");%>
<div id="header">
<% if (user != null){
    out.print("Welcome, "+user.getFirstname()+" "+user.getLastname()+" <a href=\""+request.getContextPath()+"/logout\">Logout</a>");
} else {
    out.print("<a href=\""+request.getContextPath()+"/user/login\">Login</a> or <a href=\""+request.getContextPath()+"/user/register\">Register</a>");
}%>
<jsp:include page="Menu.jsp" />
</div>